I created this XFCN in response to the limitations of the original PopUp menu XFCN in the Developer Stack. Many people have asked for a pop up menu that will display more than 255 characters. This one will. The larger capacity comes at a price (in terms of complexity), however. Instead of passing the menu items to the XFCN directly, you must first create a MENU resource (using ResEdit, or some other resource creator) and pass the number of the MENU resource.
This XFCN fixes the problem with the menu location on large screens. It also brings up the menu with less delay.
The second parameter is the ID number of the MENU resource.
The third parameter is the rectangle of the button you are calling the XFCN from. The menu will automatically be placed so that it lines up with bottom and left sides of the button.
If a fourth parameter is passed, the XFCN will return the name of the item selected. Otherwise it will return the number of the item selected.